export function getList(data: any) {
  return uni.http({
    url: '/bb/popular_science/list',
    data,
    requestType: 'baby',
    method: 'GET',
  })
}
// 科普列表  type 类型 1=伴侣2=女性3=男性4=技能5=慢病6=孕产

export const popularScienceListApi = (data: any) =>
  uni.http({
    url: 'api/popular_science/list',
    requestType: 'bl',
    method: 'GET',
    data,
  })
// 直播列表
export const getLiveMyApi = (data) =>
  uni.http({
    url: 'sq/liveRoom/pageList',
    requestType: 'baby',
    method: 'GET',
    data,
    header: {
      platform: 'baby',
    },
  })
// 科普详情
export const coupeDetails = (data) =>
  uni.http({
    url: 'api/PopularScience/info',
    requestType: 'bl',
    method: 'GET',
    data,
  })

// 科普收藏
export function collectPopularApi(data) {
  return uni.http({
    url: 'api/PopularScience/collect',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}
// 科普取消收藏
export function cancelCollectPopularApi(data) {
  return uni.http({
    url: 'bb/user/collectout',
    requestType: 'baby',
    method: 'GET',
    data,
  })
}

// 科普分类
export function categoryListApi(data) {
  return uni.http({
    url: 'api/PopularScience/category_list',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}
// 我的收藏
export function kepuCollectListApi(data) {
  return uni.http({
    url: 'api/PopularScience/collect_list',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}
// 批量取消收藏
export function kepuCollectCollectApi(data) {
  return uni.http({
    url: 'api/PopularScience/cancel_collect',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}

export function kepuCommentListApi(data) {
  return uni.http({
    url: 'api/PopularScience/comment_list',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}

export function kepulike(data) {
  return uni.http({
    url: 'api/PopularScience/like',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}

export function kepuComment(data) {
  return uni.http({
    url: 'api/PopularScience/comment',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}

export function kepuCommentLike(data) {
  return uni.http({
    url: 'api/PopularScience/comment_like',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}

export function kepuCommentDel(data) {
  return uni.http({
    url: 'api/PopularScience/del_comment',
    requestType: 'bl',
    method: 'GET',
    data,
  })
}
// 获取一级分类
export function knowledgeCateList(data) {
  return uni.http({
    url: 'blapp/v1/knowledge/cateList',
    method: 'GET',
    data,
  })
}
// 獲取二級分類

export function knowledgeSecondCateList(data) {
  return uni.http({
    url: 'blapp/v1/knowledge/secondCate',
    method: 'GET',
    data,
  })
}
// 科普分类列表

export function knowledgeList(data) {
  return uni.http({
    url: 'blapp/v1/knowledge/list',
    method: 'GET',
    data,
  })
}
